// RoamReqFile.h: interface for the CLogFile class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_LOGFILE_H__9A215043_4FF0_11D3_A21B_0000E8432AD3__INCLUDED_)
#define AFX_LOGFILE_H__9A215043_4FF0_11D3_A21B_0000E8432AD3__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////
//   File construct
//   ----------------------------------------------------
//   |read offset(4)|write offset(4)| info ...(256*1024)|
//   ----------------------------------------------------
/////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////

class CLogFile
{
public:
	CLogFile();
	virtual ~CLogFile();

	BOOL SetFileName(const char* szFileName) ;
	BOOL CLogFile::WriteLog(const char* lpBuffer,const char * lpFileName,int haveData=1);
	BOOL IsFileExist(const char* FileName);
	//void SetCurrTime(BYTE nHour,BYTE nMinute,BYTE nSecond);
private:
	CFile m_file ;
	char m_szLogFileName[100];
};

#endif // !defined(AFX_ROAMREQFILE_H__9A215043_4FF0_11D3_A21B_0000E8432AD3__INCLUDED_)